package com.sp.pay.common;


import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static String getCurrentDate(String format){
        try {
            return new SimpleDateFormat(format).format(new Date());
        } catch (Exception e) {
            return new SimpleDateFormat("yyyy-MM-dd").format(new Date());
        }
    }
}
